var page = require('webpage').create();
//page.zoomFactor=1.5
//page.viewportSize = {width: 1600, height: 1024};
page.open('http://10.103.3.235/login?from=/job/A7_RunCase/', function() {
        page.evaluate(function() {
	window.document.getElementsByName("j_username")[0].value="xiuju_lan"
    window.document.getElementsByName("j_password")[0].value="Test,123"
    window.document.getElementById("yui-gen1-button").click();
        });
		
window.setTimeout(function () {
page.clipRect = { left: 5, top: 30, width: 1600, height: 800 };
page.render('jenkins.png');
phantom.exit();
}, 20000 );
});
